package cn.iot.sys.entity;

import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 网关信息类
 */
@Data
@TableName("t_sys_gateway")
public class SysGateway implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private int id;
    @TableField("name")
    private String name;//网关名称
    @TableField("gateway_no")
    private String gatewayNo;//网关序列号
    @TableField("account")
    private String account;//网关账号
    @TableField("pwd")
    private String pwd;//网关密码
    @TableField("gateway_ip")
    private String gatewayIp;//网关IP
    @TableField("port")
    private String port;//网关端口
    @TableField("status")
    private String status;//网关状态
    @TableField("heart_beat")
    private String heartBeat;//心跳包内容
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;//创建时间
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
    @TableField("modify_time")
    private Date modifyTime;//修改时间
    @TableField("isDel")
    private int isDel;
}
